#include "List.h"
void test1()
{
	ListNode* list = NULL;
	ListInit(&list);
	ListPushBack(list, 1);
	ListPushBack(list, 2);
	ListPushBack(list, 3);
	ListPushBack(list, 4);
	ListPushBack(list, 5);
	ListPopBack(list);
	ListPopBack(list);
	ListPopBack(list);
	ListPushBack(list, -1);
	ListPushBack(list, -2);
	ListPushBack(list, -3);
	ListPushFront(list, 9);
	ListPushFront(list, 8);
	ListPushFront(list, 7);
	ListPushFront(list, 6);
	ListPopFront(list);
	ListPopFront(list);
	ListPopFront(list);
	ListInsertFront(ListFind(list, -3), 44);
	ListInsertFront(ListFind(list, -3), 54);
	ListInsertAfter(ListFind(list, 44), 999);
	ListInsertAfter(ListFind(list, 44), 9999);
	ListErase(ListFind(list, 44));
	ListErase(ListFind(list, 999));
	
	ListPrint(list);

}
int main()
{
	test1();
}